package com.ktwlsoft.fundmanage.service.timingTask;

import com.alibaba.fastjson.JSONObject;
import com.ktwlsoft.fundmanage.domain.entity.FundSuperviseAccept;
import com.ktwlsoft.fundmanage.mapper.IFundSuperviseAcceptMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 更新案件定时任务
 *
 * @author Name on 2019/10/16 14:54
 * @version 1.0
 */
@Component
public class UpdateFundAcceptTask {

    /** 日志对象 **/
    private static Logger logger = LoggerFactory.getLogger(UpdateFundAcceptTask.class);

    private final IFundSuperviseAcceptMapper fundSuperviseAcceptMapper;

    public UpdateFundAcceptTask(IFundSuperviseAcceptMapper fundSuperviseAcceptMapper) {
        this.fundSuperviseAcceptMapper = fundSuperviseAcceptMapper;
    }

    /**
     * 更新案件,每十分钟调一次 on 2019/5/20 16:45
     */
//    @Scheduled(fixedRate = 600000)
//    public void updateFundAccept(){
//        List<FundSuperviseAccept> list = fundSuperviseAcceptMapper.findList(new JSONObject());
//        if(list != null && list.size() > 0){
//             todo 等石宗灏协调
//        }
//    }
}